<%@page import="webshop.Cart"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../CSS/frontend.css"/>
        <%
            if (session.getAttribute("CART") == null) {
                Cart cart = new Cart();
                session.setAttribute("CART", cart);
            }

        %>
    </head>
    <body>
        <div id="top">
            <table>
                <td>
                    <div id="topLeft">
                        <% if (session.getAttribute("login") == null) {
                        %><jsp:include page="../Login/loginForm.jsp"></jsp:include><%                            } else {
                                out.println("<a href=\"../Login/logout.jsp\">Du er logget ind, log ud her.</a>");
                            }
                        %>
                    </div>
                </td>
                <td>
                    <div id="topCenter">
                        <center><img alt="firstmile_logo"src="../pictures/logo_jpg.jpg" /></center>
                    </div>
                </td>
                <td>
                    <div id="topRight">
                        <a href="cart.jsp" name="cartLink" id="cartLink"><img alt="cart"src="../pictures/cart.jpg" border="0"/></a>
                    </div>
                </td>
            </table>
        </div>
        <div id="menu">
            <ul>
                <li><a href="index.jsp" class="menu">Forside</a></li>
                <li><a href="reservedele.jsp" class="menu">Reservedele</a></li>
                <li><a href="news.jsp" class="menu">Nyheder</a></li>
                <li><a href="contact.jsp" class="menu">Kontakt os</a></li>
                <li><a href="about.jsp" class="menu">Om os</a></li>

                <form action="search.jsp" method="post" >
                    <input type="text" name="search" />
                    <input type="submit" name="submit" value=" Søg "/>
                </form>
            </ul>
        </div>

    </body>
</html>
